package com.haiyan.demo09_super的注意事项;
class Ye{
    int num=10;
    public void method()
    {
        System.out.println("Ye method");
    }
}
class Fu extends Ye{
    public Fu()
    {
        System.out.println("Fu 空参");
    }
}
class Zi extends Fu{
    public void show()
    {
        System.out.println(super.num);
        super.method();
    }
    public Zi()
    {

    }
    public Zi(int num)
    {

    }

}
public class Test {
    public static void main(String[] args) {
        Zi zi1=new Zi();
        Zi zi2=new Zi(10);
        Student stu=new Student("张三",19);
        System.out.println(stu.getName()+","+stu.getAge());
    }
}
